use serde_json::Value;

fn main() -> Result<(), Box<serde_json::Error>> {
  let s = r#"
  {
    "name":"John",
    "age": 43,
    "ids": [3, 4, 5]
  }"#;

  // Parse the string of data into serde_json::Value.
  let v: Value = serde_json::from_str(s)?;

  println!("name:{} id0:{}", v["name"], v["ids"][0]);
  Ok(())
}